﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd"
    >
<html lang="en">
<head>
<title>Основная</title>
</head>
<body>

<div>[%msg%]</div>
[%if error%]
	<div>[%text%]</div>
[%end%]

Имя: [%title%]<br>
[%unless validate%]
	<form method=post action=?>
		<input type=hidden name=cmd value=validate>
		логин: <input type=text name=login><br>
		пароль: <input type=text name=pass><br>
		<input type=submit value="сохранить">
	</form>
[%else%]
	логин: [%login%]<br>
	<form method=post action=?>
		<input type=hidden name=cmd value=rename>
		имя: <input type=text name=login>
		<input type=submit value="изменить">
	</form>
[%end%]

</body>
</html>
